package com.hpc.mapper;

import entity.article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface articleMapper {
    public article findById(@Param("articleId") String articleId);
    public List<article> getRecommendArticles(@Param("title")String titles);
    public void hotsave(@Param("articleId") String articleId,@Param("hot") int hot);
    public List<article> hotweekendly();
    public List<article> gethotTop5(@Param("articleIds") List<String> articleIds);
    public int deleteArticle(@Param("articleId") String articleId);
    public List<article> allArticle(@Param("type") int type);
    public List<article> allArticleByUserId(@Param("userId") String userId);
    public List<article> searchByTitle(@Param("title") String title);
    public int addArticle(article article);
    public int infoUser(@Param("serial")String serial,@Param("userId") String userId,@Param("msg") String msg);
    public int modifyArticle(@Param("content") String content,@Param("title") String title,@Param("type") int type,@Param("articleId") String articleId,@Param("cover") String cover);
}
